import request from '@/utils/request'
// 二手回收申请或添加
export function add(data) {
  return request({
    url: '/settle/web/recycle/add',
    method: 'post',
    data
  })
}

// 二手回收单评估
export function evalOrder(data) {
  return request({
    url: '/settle/manager/recycle/eval',
    method: 'post',
    data
  })
}


// 二手回收单厂家发货给客户
export function publish(data) {
  return request({
    url: '/settle/manager/recycle/fac/publish',
    method: 'post',
    data
  })
}


// 二手回收单厂家确认收货
export function receiveAck(data) {
  return request({
    url: '/settle/manager/recycle/fac/receiveAck',
    method: 'post',
    data
  })
}







export function del(data) {
  return request({
    url: '/settle/manager/recycle/eval',
    method: 'post',
    data
  })
}



// 配件修改
export function edit(data) {
  return request({
    url: '/settle/manager/goods/pj/modify',
    method: 'post',
    data
  })
}


// 二手回收单列表
export function list(data) {
  return request({
    url: '/settle/manager/recycle/list',
    method: 'post',
    data
  })
}





// 商品-配件上下架
export function upAndDwon(data) {
  return request({
    url: '/settle/manager/goods/pj/up/down',
    method: 'post',
    data
  })
}


// 二手回收单详情
export function detail(data) {
  return request({
    url: '/settle/manager/recycle/bill/dtl',
    method: 'post',
    data
  })
}



// 配件导入
export function importLight(data) {
  return request({
    url: '/settle/manager/goods/pj/import',
    method: 'post',
    data
  })
}